package com.d3works.apps.stock.service;

import com.d3works.apps.base.db.Unit;
import com.d3works.apps.stock.db.StockMove;
import com.d3works.exception.D3worksException;
import java.math.BigDecimal;

public interface StockMoveUpdateService {

  /** To update status of a stock move (API AOS) */
  void updateStatus(StockMove stockMove, Integer status) throws D3worksException;

  /**
   * To update unit or qty of an internal stock move with one product, mostly for mobile app (API
   * AOS)
   */
  void updateStockMoveMobility(StockMove stockMove, BigDecimal movedQty, Unit unit)
      throws D3worksException;
}
